package com.wl.dzt.sys.util;

import java.util.Random;

/**
 * @author wl_code@163.com
 * @version 1.0
 * @date 2018/7/10/010
 * @description 描述
 */
public class MathUtils {
    public static Random random = new Random(100000);

    /**
     * 随机生成6位数字
     * @return
     */
    public static String getCode() {
        StringBuffer randomCode=new StringBuffer();
        Random r = new Random();
        for(int i=0;i<6;i++){
            String strRand=String.valueOf(r.nextInt(10));
            randomCode.append(strRand);
        }
        return randomCode.toString();
    }
}
